<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
    request.setAttribute("contextPath", request.getContextPath());
%>
<html>
  <head>
  </head>
  
  <body bgcolor="#15B69A">
  <h1 style="text-align: center;">慧驾网上书城系统</h1>
  <div style="font-size: 12pt; line-height: 10px; " >

	<%-- 根据用户是否登录，显示不同的链接 --%>
	<c:choose>
		<c:when test="${empty sessionScope.LOGIN_USER_KEY_IN_SESSION }">
			  <a href="${contextPath }/gotoLogin" target="_parent">登录</a>&nbsp;|&nbsp;
			  <a href="${contextPath }/registerjsp" target="_parent">注册</a> <br>
		</c:when>
		<c:otherwise>
			      慧驾会员：${sessionScope.LOGIN_USER_KEY_IN_SESSION.userName }&nbsp;|&nbsp;
			     用户余额：${sessionScope.LOGIN_USER_KEY_IN_SESSION.money }$&nbsp;|&nbsp;
			  <a href="${contextPath }/orderController/orderlist" target="body1">我的订单</a>&nbsp;|&nbsp;
			  <a href="${contextPath }/user/modifyPwd" target="body1">修改密码</a>&nbsp;|&nbsp;
	          <a href="${contextPath }/logout" target="_parent">退出</a>
		</c:otherwise>
	</c:choose>



</div>
	
	
	
  </body>
</html>